//
//  BaseNavigationController.swift
//  StoreProject
//
//  Created by CYC on 1998/12/29.
//

import UIKit

class BaseNavigationController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
    }
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        // 修正导航栏高度
        kNavHeight = self.navigationBar.frame.origin.y + self.navigationBar.frame.size.height
    }
    
//    // CYC666
//    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
//        if self.viewControllers.count > 0 {
//            viewController.hidesBottomBarWhenPushed = true
//        } else {
//            viewController.hidesBottomBarWhenPushed = false
//        }
//        super.pushViewController(viewController, animated: animated)
//    }

}
